Skip to content

chore(deps): bump viem from 1.2.9 to 1.5.3#128

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/viem-1.5.3
Closed

chore(deps): bump viem from 1.2.9 to 1.5.3#128
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/viem-1.5.3

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 4, 2023

Bumps viem from 1.2.9 to 1.5.3.

Release notes

Sourced from viem's releases.

viem@1.5.3

Patch Changes

  • ae4ab844 Thanks @​jxom! - Fixed performance bottleneck in ABI encoding for dynamic bytes.

viem@1.5.2

Patch Changes

  • #974 11410bab Thanks @​jxom! - Fixed issue where getFunctionSelector & getEventSelector were returning incorrect selectors for tuple parameters.

viem@1.5.0

Minor Changes

  • #847 1e5d4545 Thanks @​jxom! - Narrowed getBlock, watchBlocks, getFilterChanges, getFilterLogs & getLogs return types for when blockTag or includeTransactions is provided.

    • When blockTag !== 'pending', the return type will now include some non-nullish properties if it were dependent on pending blocks. Example: For getBlock, the block.number type is now non-nullish since blockTag !== 'pending'.
    • On the other hand, when blockTag: 'pending', some properties will be nullish. Example: For getBlock, the block.number type is now null since blockTag === 'pending'.
    • When includeTransactions is provided, the return type of will narrow the transactions property type. Example: block.transactions will be Transaction[] when includeTransactions: true instead of Hash[] | Transaction[].

    TLDR;

    // Before
    const block = publicClient.getBlock({ includeTransactions: true });
    block.transactions;
    //    ^? Hash[] | Transaction[]
    block.transactions[0].blockNumber;
    //                    ^? bigint | null
    // After
    const block = publicClient.getBlock({ includeTransactions: true });
    block.transactions;
    //    ^? Transaction[]
    block.transactions[0].blockNumber;
    //                    ^? bigint
    // Before
    const block = publicClient.getBlock({
    blockTag: "pending",
    includeTransactions: true
    });
    block.number;
    //    ^? number | null
    block.transactions[0].blockNumber;
    //                    ^? bigint | null
    // After
    const block = publicClient.getBlock({
    blockTag: "pending",
    includeTransactions: true

... (truncated)

Changelog

Sourced from viem's changelog.

1.5.3

Patch Changes

  • ae4ab844 Thanks @​jxom! - Fixed performance bottleneck in ABI encoding for dynamic bytes.

1.5.2

Patch Changes

  • #974 11410bab Thanks @​jxom! - Fixed issue where getFunctionSelector & getEventSelector were returning incorrect selectors for tuple parameters.

1.5.1

Patch Changes

  • #954 e98e2651 Thanks @​jaxernst! - Added filter reinitialization logic for watchContractEvent and watchEvent for when a filter has been uninstalled.
  • #967 eb8954a0 Thanks @​Zil-B! - Moved @types/ws into dependencies to fix an issue where required runtime types weren't being exported.

1.5.0

Minor Changes

  • #847 1e5d4545 Thanks @​jxom! - Narrowed getBlock, watchBlocks, getFilterChanges, getFilterLogs & getLogs return types for when blockTag or includeTransactions is provided.

    • When blockTag !== 'pending', the return type will now include some non-nullish properties if it were dependent on pending blocks. Example: For getBlock, the block.number type is now non-nullish since blockTag !== 'pending'.
    • On the other hand, when blockTag: 'pending', some properties will be nullish. Example: For getBlock, the block.number type is now null since blockTag === 'pending'.
    • When includeTransactions is provided, the return type of will narrow the transactions property type. Example: block.transactions will be Transaction[] when includeTransactions: true instead of Hash[] | Transaction[].

    TLDR;

    // Before
    const block = publicClient.getBlock({ includeTransactions: true });
    block.transactions;
    //    ^? Hash[] | Transaction[]
    block.transactions[0].blockNumber;
    //                    ^? bigint | null
    // After
    const block = publicClient.getBlock({ includeTransactions: true });
    block.transactions;
    //    ^? Transaction[]
    block.transactions[0].blockNumber;
    //                    ^? bigint
    // Before
    const block = publicClient.getBlock({
    blockTag: "pending",

... (truncated)

Commits
  • 9b26756 chore: version package (#982)
  • fa3215c chore: changeset
  • ae4ab84 refactor: tweak dynamic bytes abi encoding
  • 0f7a0eb Fix typo in ethers migration docs (#976)
  • 1b9f3f2 chore: version package (#975)
  • 11410ba fix: getFunctionSelector/getEventSelector returning incorrect selectors (...
  • 9aba192 chore: version package (#969)
  • 5ae9cdc chore: update snapshots
  • e98e265 fix: add re-initialization logic for event filters (#954)
  • eb8954a fix: move @types/ws into dependencies to fix bug (#967)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [viem](https://github.com/wagmi-dev/viem) from 1.2.9 to 1.5.3.
- [Release notes](https://github.com/wagmi-dev/viem/releases)
- [Changelog](https://github.com/wagmi-dev/viem/blob/main/CHANGELOG.md)
- [Commits](https://github.com/wagmi-dev/viem/compare/viem@1.2.9...viem@1.5.3)

---
updated-dependencies:
- dependency-name: viem
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner August 4, 2023 07:54
@dependabot dependabot bot requested review from hozzjss, okhaimie-dev and tnrdd August 4, 2023 07:54
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Aug 4, 2023
@netlify
Copy link

netlify bot commented Aug 4, 2023

Deploy Preview for glistening-mainnet-d54e71 ready!

Name Link
🔨 Latest commit 07162cb
🔍 Latest deploy log https://app.netlify.com/sites/glistening-mainnet-d54e71/deploys/64ccaec2145084000837d35a
😎 Deploy Preview https://deploy-preview-128--glistening-mainnet-d54e71.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 4, 2023

Deploy Preview for beautiful-sepolia-0d3117 ready!

Name Link
🔨 Latest commit 07162cb
🔍 Latest deploy log https://app.netlify.com/sites/beautiful-sepolia-0d3117/deploys/64ccaec2af85d60008c7bedb
😎 Deploy Preview https://deploy-preview-128--beautiful-sepolia-0d3117.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Aug 4, 2023

Deploy Preview for incredible-optimism-fc8746 ready!

Name Link
🔨 Latest commit 07162cb
🔍 Latest deploy log https://app.netlify.com/sites/incredible-optimism-fc8746/deploys/64ccaec227a90a0009e82a12
😎 Deploy Preview https://deploy-preview-128--incredible-optimism-fc8746.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 9, 2023

Superseded by #129.

@dependabot dependabot bot closed this Aug 9, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/viem-1.5.3 branch August 9, 2023 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants